<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./css/getbrand.css">
</head>

<body>
    <!-- 头部 -->
    <header>
        <div class="logo">
            <a href="#">
                <img src="./images/header_logo.png" alt="">
            </a>
        </div>
        <div class="app-down">
            <a href="#">
                <img src="./images/header_app.png" alt="">
            </a>
        </div>
    </header>
    <!-- 搜索栏 -->
    <div class="search">
        <input type="search" placeholder="请输入你想比价的商品">
        <div class="searchBtn">搜索</div>
    </div>
    <!-- 列表栏 -->
    <nav>
        <div class="title">
            <a href="#">首页></a>
            <a href="#">品牌大全</a>
        </div>
        <div class="content">

        </div>
    </nav>
    <!-- 底部 -->
    <footer>
        <div class="foot-top">
            <a href="#">登录</a>
            <a href="#">注册</a>
            <a href="#">
                <img src="./images/top.jpg" alt="">
                返回顶部
            </a>
        </div>
        <div class="copy">
            <p>
                <a href="#">手机APP下载</a>
                <a href="#">慢慢买手机版</a>
                -- 掌上比价平台
            </p>
            <p>m.manmanbuy.com</p>
        </div>
    </footer>
</body>
<script src="./js/getbrand.js"></script>
<script src="./lib/template-web.js"></script>
<!-- <script src="./lib/zepto.js"></script> -->
<script src="./lib/jquery.js"></script>
<script type="bb/cc" id="menu">
    <div class="paihang">
        热门品牌排行
    </div>
    <div class="pp-content">
        {{each data value index}}
        <a  href="top10.html?brandtitleid={{value.brandTitleId}}&{{@value.brandTitle}}">{{value.brandTitle}}</a>
        {{/each}}
    </div>
</script>
<script>
    $(function(){
    console.log($('.pp-content>a'))
    // 
    $('a').on('click',function(){
        var str = $(this).html();
        console.log(str);
    })
    $.ajax({
        url: 'http://193.112.55.79:9090/api/getbrandtitle',
        type: 'get',
        dataType: 'json',
        success: function (res) {
            var menuHtml = template('menu', {
                'data': res.result
            });
            // console.log(res.result);
            $('.content').html(menuHtml);
        }
    });
})
</script>

</html>